package com.woniu.commentorder.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface WalletMapper {
    @Update("update hc_wallet set balance=balance+#{num} where user_id=#{id}")
    public void addMoney(@Param("num") int num, @Param("id") int id);
    @Update("update hc_wallet set balance=balance-#{num} where user_id=#{id}")
    public void deMoney(@Param("num") int num, @Param("id") int id);
}
